

export type {ResponseError} from './src/model';
import { getAxiosBaseConfig } from './src/config';
import  { createAxiosInstance } from './src/instance';
import { createMethods } from './src/methods';
import { AxiosBaseConfig } from './src/model';



export const useAxios = (config:AxiosBaseConfig) => {
  const axiosBaseConfig = getAxiosBaseConfig();
  // 创建实例
  createAxiosInstance({...axiosBaseConfig,...config});

  // 返回方法
  return createMethods(config.baseURL)
};
